package com.example.demo.pdfbox.common.enums;

public enum Rectangle {
    NO_BORDER((byte) 0X00),
    ALL_BORDER((byte) 0X0F),
    LEFT_BORDER((byte) 0X08),
    UP_BORDER((byte) 0X04),
    RIGHT_BORDER((byte) 0X02),
    DOWN_BORDER((byte) 0X01);


    /**
     * 左 上 右 下
     * 1  1  1  1
     */
    private byte border;

    Rectangle(byte border) {
        this.border = border;
    }

    public byte getBorder() {
        return border;
    }

    public void setBorder(byte border) {
        if (border>0x0f){
            border=0x0f;
        }
        this.border = border;
    }
}
